class CreateTopics < ActiveRecord::Migration
  def self.up
    create_table :topics do |t|
    t.column :category_id, :string, :null => false
    t.column :owner, :string
    t.column :content, :string
    t.column :dateOfCreation, :date
    t.column :lastModifiedDate, :date

      t.timestamps
    end
  end

  def self.down
    drop_table :topics
  end
end
